90668bd409ec02abb913f6d5d46a40d986392360,webs/sync-web/docroot/WEB-INF/src/com/liferay/sync/service/impl/SyncDLObjectServiceImpl.java,SyncDLObjectServiceImpl,checkSyncDLObjects,#List#,1036

Before Change


					dlAppService.getFileEntry(syncDLObject.getTypePK());
				}
				else {
					dlAppService.getFolder(syncDLObject.getTypePK());
				}
			}
			catch (Exception e) {

After Change



		List<SyncDLObject> checkedSyncDLObjects = new ArrayList<>();

		for (SyncDLObject syncDLObject : syncDLObjects) {
			String event = syncDLObject.getEvent();

			if (event.equals(SyncConstants.EVENT_DELETE)) {
				continue;
			}

			String type = syncDLObject.getType();

			if (type.equals(SyncConstants.TYPE_FILE)) {
				if (!permissionChecker.hasPermission(
						syncDLObject.getRepositoryId(),
						DLFileEntryConstants.getClassName(),
						syncDLObject.getTypePK(), ActionKeys.VIEW)) {

					continue;
				}
			}
			else if (type.equals(SyncConstants.TYPE_FOLDER)) {
				if (!permissionChecker.hasPermission(
						syncDLObject.getRepositoryId(),
						DLFolderConstants.getClassName(),
						syncDLObject.getTypePK(), ActionKeys.VIEW)) {

					continue;
				}